package index;

public class StringKey extends KeyClass {

	private String key;

	public String toString() {
		return key;
	}

	/**
	 * Class constructor
	 * 
	 * @param s
	 *            the value of the string key to be set
	 */
	public StringKey(String s) {
		key = new String(s);
	}
	
//	public int compareTo ( Object o )
	/**
	 * get a copy of the istring key
	 * 
	 * @return the reference of the copy
	 */
	public String getKey() {
		return new String(key);
	}

	/**
	 * set the string key value
	 */
	public void setKey(String s) {
		key = new String(s);
	}
}
